home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / the_lord.swf / scripts / DefineSprite_246 / frame_1 / DoAction.as
Text File  |  2007-04-25  |  2KB  |  63 lines

  1. var ┬º\x01┬º = 793;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 793)
  5.    {
  6.       set("\x01",eval("\x01") + 78);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 824)
  12.       {
  13.          set("\x01",eval("\x01") - 459);
  14.          break;
  15.       }
  16.       if(eval("\x01") != 871)
  17.       {
  18.          if(eval("\x01") == 365)
  19.          {
  20.             set("\x01",eval("\x01") + 545);
  21.             z = 0;
  22.             step = 0;
  23.             step2 = 0;
  24.             n = 9;
  25.             update = function()
  26.             {
  27.                z += 10;
  28.                this._visible = true;
  29.                step2 -= (step2 - step) / 20;
  30.                var _loc2_ = 1;
  31.                while(_loc2_ <= n)
  32.                {
  33.                   var _loc3_ = step2 * Math.sin((3.141592653589793 * z + _loc2_ * 90) / 180);
  34.                   this["c" + _loc2_]._y = _loc3_;
  35.                   _loc2_ = _loc2_ + 1;
  36.                }
  37.                if(step == -1 && Math.abs(step2 - step) < 0.01)
  38.                {
  39.                   delete this.onEnterFrame;
  40.                }
  41.             };
  42.             this.onRollOver = function()
  43.             {
  44.                step = 5;
  45.                this.onEnterFrame = update;
  46.                _root.soundArc2.playSound("fire2");
  47.             };
  48.             this.onRollOut = function()
  49.             {
  50.                step = 0;
  51.             };
  52.             break;
  53.          }
  54.          break;
  55.       }
  56.       set("\x01",eval("\x01") - 47);
  57.       if(┬º┬ºpop())
  58.       {
  59.          set("\x01",eval("\x01") - 459);
  60.       }
  61.    }
  62. }
  63.